package com.hpeu_12.day1222;
/*
 * 作业05-第二题
 */
public class Test08 {
	public static void main(String[] args) {
		short s = 30;
		int i = 50;
		s += i;//会自动进行强制转换 S = S+i
		System.out.println("s="+s);//s=80
		int x = 0;
		int y = 0;
		int z = 0;
		boolean a,b;
		a = x==0 & y++>1;
		//   true  false y =1
		System.out.println("a="+a);//false
		System.out.println("y="+y);//y=1
		b = x==0 && z++>1;
		//  true     false z=1
		System.out.println("b="+b);//b=false
		System.out.println("z="+z);//z=1
		a = x>0 | y++>1;
		// false  false y=2
		System.out.println("a="+a); //a=false
		System.out.println("y="+y);//y=2
		b = x>0 || z++>1;
		//  false  false z=2
		System.out.println("b="+b);//b=false
		System.out.println("z="+z);//z=2
	}
}
